
import CryptoJS from 'crypto-js'

export const encrypt = function (pwd) {
  var key = CryptoJS.enc.Utf8.parse('diit123456ASDPLM')
  var srcs = CryptoJS.enc.Utf8.parse(pwd)
  var encrypted = CryptoJS.AES.encrypt(srcs, key, { mode: CryptoJS.mode.ECB, padding: CryptoJS.pad.Pkcs7 })
  return encrypted.toString()
}
